import { get } from "@/utils";
export interface MenuItemOld {
    authName: string;
    children: MenuItemOld[];
    id: number;
    path: string;
    order: number | null;
  }
  interface MenuData<T extends object = object> {
    data: T;
  }
const getMenu = () => get<MenuItemOld[],MenuData<MenuItemOld[]>>("/menus");
export default getMenu;
